package com.config;

import java.io.IOException;

import org.apache.log4j.Logger;

public class SystemGlobalsListener implements FileChangeListener {
	private static final Logger logger = Logger
			.getLogger(SystemGlobalsListener.class);

	public void fileChanged(String filename) {
		try {
			SystemGlobals.initGlobals(SystemGlobals
					.getValue(ConfigKeys.APPLICATION_PATH), SystemGlobals
					.getValue(ConfigKeys.DEFAULT_CONFIG), SystemGlobals
					.getValue(ConfigKeys.INSTALLATION));
		} catch (IOException e) {
			logger.info(e);
			e.printStackTrace();
		}
	}

}
